{{extend 'layout.html'}}
{{import os}}

<h1>Search by tag {{=tag.replace(':',' equal ')}}</h1>

{{if subfolders:}}
<h2>Folders</h2>
<ul data-role="listview" data-inset="true">
  <li data-role='list-divider'>Pages</li>
  {{for child in subfolders:}}
  <li><a href="{{=URL('root',args=child.path)}}">{{=name(child.title)}}</a></li>
  {{pass}}
</ul>
{{else:}}
Search produced no results
{{pass}}
